/*
 * $Id: CreateRFSResponse.java,v 1.4 2011/04/15 20:50:04 l501902876 Exp $
 * 
 * Copyright (C) 2010 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.createrfs.response;

/**
 * Message sent in response to a CreateRFSRequest.  If the CreateRFSRequest was successful,
 * the response message will contain an RFS number and Assist case number generated by
 * external systems and will have a status of OK.  If the RFS creation was successful but the 
 * Assist case creation was not, the response will have a status of PARTIAL SUCCESS.  If RFS
 * creation failed, the response will have a status of FAILURE.  In the case of a FAILURE or 
 * PARTIAL SUCCESS, the failure message field will give more information as to why the failure
 * occurred. 
 * 
 */
public class CreateRFSResponse {


    /** The CAPS RFS number. */
    private String rfsNumber = null;

    /** The Assist Case number. */
    private Integer caseNumber = null;

    /** Status text - indicates if the request to create RFS was successful or not.  */
    private String status = null;
    
    /**
     * If the status in not OK, this field will hold a message containing info
     * as to why the request failed.
     */
    private String failureMsg = null;
    
    private String SRNumber = null;
	
    private String faultCode = null;
	
    private String faultString = null;

	/**
     * Constructor.
     * 
     * @param rfsNumber
     * @param caseNumber
     * @param status
     * @param failureMsg
     */
    public CreateRFSResponse(String rfsNumber, Integer caseNumber, String status, String failureMsg) {
        super();
        this.rfsNumber = rfsNumber;
        this.caseNumber = caseNumber;
        this.status = status;
        this.failureMsg = failureMsg;
    }

    /**
     * Default constructor.
     */
    public CreateRFSResponse() {
        super();
    }

    /**
     * Getter for the RFS number field.  Will return null if the request to create the RFS failed, 
     * otherwise it will contain the RFS number generated by the external system.
     * 
     * @return RFS number
     */
    public String getRfsNumber() {
        return rfsNumber;
    }

    /**
     * Setter for the RFS number field.
     * @param rfsNumber 
     */
    public void setRfsNumber(String rfsNumber) {
        this.rfsNumber = rfsNumber;
    }

    /**
     * Getter for the Assist case number. Will return null if the request to create the RFS failed
     * or the request to create the Assist case failed.  If Assist case creation was successful it 
     * will contain the case number generated by the external system.
     * 
     * @return Assist case number.
     */
    public Integer getCaseNumber() {
        return caseNumber;
    }

    /**
     * Setter for the Assist case number varaible.
     * @param caseNumber
     */
    public void setCaseNumber(Integer caseNumber) {
        this.caseNumber = caseNumber;
    }

    /**
     * Returns the status of the RFS creation request.  The possible values are OK,
     * FAILURE, or PARTIAL. The status will be partial if the RFS creation was successful
     * but the Assist Case creation was not.
     * @return
     */
    public String getStatus() {
        return status;
    }

    /**
     * Setter for the status variable.
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * Returns the failure message or null if the request was successful.
     * @return
     */
    public String getFailureMsg() {
        return failureMsg;
    }

    /** 
     * Setter for the failure message variable. 
     * @param failureMsg
     */
    public void setFailureMsg(String failureMsg) {
        this.failureMsg = failureMsg;
    }

    public String getSRNumber() {
		return SRNumber;
	}

	public void setSRNumber(String sRNumber) {
		SRNumber = sRNumber;
	}

	public String getFaultCode() {
		return faultCode;
	}

	public void setFaultCode(String faultCode) {
		this.faultCode = faultCode;
	}

	public String getFaultString() {
		return faultString;
	}

	public void setFaultString(String faultString) {
		this.faultString = faultString;
	}
    
    @Override
    public String toString() {
        return "CreateRFSResponse [caseNumber=" + caseNumber + ", failureMsg=" + failureMsg + ", rfsNumber="
                + rfsNumber + ", status=" + status + "]";
    }

}
